package com.ruoyi.vpn.domain;

import java.util.Date;

import ch.qos.logback.core.util.SystemInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * user对象 vpn_user
 * 
 * @author Edwin
 * @date 2024-01-08
 */
public class VpnUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 剩余流量M */
    @Excel(name = "剩余流量M")
    private Long bandwidth;

    /** 到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    /** qq号 */
    @Excel(name = "qq号")
    private String qq;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;

    /** 是否在连接 */
    @Excel(name = "连接状态")
    private Long connectStatus;

    public VpnUser() {
    }

    public Long getConnectStatus() {
        return connectStatus;
    }

    public void setConnectStatus(Long connectStatus) {
        this.connectStatus = connectStatus;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Excel(name = "头像地址")
    private String imgUrl;


    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setBandwidth(Long bandwidth)
    {
        this.bandwidth = bandwidth;
    }

    public Long getBandwidth()
    {
        return bandwidth;
    }
    public void setExpirationTime(Date expirationTime)
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime()
    {
        return expirationTime;
    }
    public void setQq(String qq)
    {
        this.qq = qq;
    }

    public String getQq()
    {
        return qq;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return "VpnUser{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", bandwidth=" + bandwidth +
                ", expirationTime=" + expirationTime +
                ", qq='" + qq + '\'' +
                ", status=" + status +
                ", connectStatus=" + connectStatus +
                ", imgUrl='" + imgUrl + '\'' +
                '}';
    }

    public VpnUser(Long userId, String username, String password, Long bandwidth, Date expirationTime, String qq, Long status, Long connectStatus, String imgUrl) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.bandwidth = bandwidth;
        this.expirationTime = expirationTime;
        this.qq = qq;
        this.status = status;
        this.connectStatus = connectStatus;
        this.imgUrl = imgUrl;
    }




}
